<template>
  <div>
    <ul>
      <li v-for="(item, index) in arr" :key="index">{{ item }}</li>
    </ul>
    <button @click="walk">走一走</button>
  </div>
</template>

<script>
export default {
  name: "App",
  components: {},
  props: {},
  data() {
    return {
      arr: ["帅哥", "美女", "程序员"],
    };
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
    walk() {
      this.arr.push(this.arr.shift());
    },
  },
};
</script>

<style scoped></style>
